package cn.ad.server.domain.enumration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wang wei
 * @from 2016-05-23
 * @since V1.0
 */
public enum Operator {
/**
 * 运营商 :3 中国电信 2 中国联通  1 中国移动   0 未知',
 * china Mobile 中国移动 China Unicom 中国联通 china Telecom 中国电信 china Netcom 中国网通
 * 
 */
	UNKNOWN(0,"未知"),
	CHINA_MOBILE(1,"中国移动"),
	CHINA_UNICOM(2,"中国联通"),
	CHINA_TELECOM(3,"中国电信");

    private int value;

    private String name;

    public static final Map<Integer, Operator> operatorMap;

    static {
    	operatorMap = new HashMap<>();
        for (Operator actionType : values()) {
        	operatorMap.put(actionType.getValue(), actionType);
        }
    }

    Operator(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

}
